<template lang="html">
  <div class="index">
    <loading :showLoading='showLoading'></loading>
    首页
  </div>
</template>

<script>

  export default {
    data() {
      return {
        showLoading:false
      }
    },
    methods: {
      tourl(url,query) {
        console.log(url);
        tools.router.push({ path: url ,query:query || {}})
      },
      checkSession(openid){
        this.showLoading = true;
        tools.ajax({
          url:'/api/account/get_account',
          // type:'GET',
          data:{
            wechatOpenId:openid || this.openid
          }
        })
        .then(res => {
          // alert(JSON.stringify(res))
          
          if(res.code == 200){
            console.log(res);
          }
          this.showLoading = false;
        })
        .catch( e => {
          this.showLoading = false;
        })
      }
    },
    mounted(){
    },
    created() {
    },
    components: {
    }
  }
</script>
<style scoped lang='scss'>
  @import '../assets/scss/tool.scss';
  .index{
    font-size: pxTorem(100px);
    text-align: center;
  }
</style>